package iterator;

import java.io.IOException;

import global.*;
import heap.*;
public class ColumnarSort {
	
	Sort s;
	public ColumnarSort(AttrType[] in,short len_in, short[] str_sizes, String ColumnarFileName,	int sort_fld,
			TupleOrder sort_order,	int sort_fld_len,int n_pages, Iterator fs ) throws FileScanException, TupleUtilsException, InvalidRelation, IOException, SortException
	{
		s = new Sort(in, len_in, str_sizes, fs, sort_fld, sort_order, sort_fld_len, n_pages);	
	}
	
	public Tuple get_next() throws SortException, UnknowAttrType, LowMemException, JoinsException, IOException, Exception
	{
		Tuple t = new Tuple();
		t = s.get_next();
		return t;
	}
	public void close() throws SortException, IOException
	{
		s.close();
	}
	

}
